Get script
Get a Cloud-Code script.
Command
Authentication Required: Yes
ugs cloud-code get <script-name> [options]
Arguments
<script-name>
The name of the script to get
Options
Option | Alias | Description |
---|---|---|
project-id | -p, --project-id | The Unity cloud project ID. |
environment | -e, --environment-name | The services environment name. |
help | -?, -h, --help | Display help and usage information. |
quiet | -q, --quiet | Reduce logging to a minimum. |
json | -j, --json | Use JSON as the output format. |
JSON Output
You can use the --json
option and JQuery to output the result of the get command to a file (script.js as example).
ugs cloud-code get <script-name> [options] --json | jq -r '.Result.ActiveScript.Code' > script.js